﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel;

namespace MShop.Web.Models
{

    public class SendMailModel
    {
        public SendMailModel()
        {
            this.SendType = "0";
        }

        [Required(ErrorMessage = "邮件主题不能为空")]
        [DisplayName("邮件主题")]
        public string Subject { get; set; }

        [Required(ErrorMessage = "邮件主题不能为空")]
        [DisplayName("邮件内容")]
        public string Body { get; set; } 

        public string Emails { get; set; }

        [DisplayName("发送角色")]
        public Guid RoleId { get; set; }      

        [DisplayName("发送对象")]
        [UIHint("SendType")]
        public string SendType { get; set; }

    }
  
}